package idea;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Debug01
 * Package: idea
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-12-24
 * Time: 20:25
 */


//行断点
public class Debug01 {
    public static void main(String[] args) {
        int m = 10;
        int n = 20;
        System.out.println("m = " + m + ",n = " + n);//断电这行是没有执行的
        //怀疑出现问题代码的前面
        swap(m, n);
        //想得到交换的结果 但是没有交换 方法栈帧
        System.out.println("m = " + m + ",n = " + n);

        //2
        int[] arr = new int[]{1, 2, 3, 4, 5};
        System.out.println(arr);

        char[] arr1 = new char[]{'a', 'b', 'c'};
        System.out.println(arr1);

    }

    public static void swap(int m, int n) {
        int temp = m;
        m = n;
        n = temp;
    }

}
